import Vue from 'vue'
import Vuex from 'vuex'

import actions from './actions'
import mutations from './mutations'

Vue.use(Vuex);

// 假数据
const state = {
  totalTime: 0,
  // list: [{
  //   name: '乐一阿亮',
  //   avatar: 'https://sfault-avatar.b0.upaiyun.com/147/223/147223148-573297d0913c5_huge256',
  //   date: '2018-05-17',
  //   totalTime: 1,
  //   comment:'一小时学习时间'
  // }]
  list: []
};

export default new Vuex.Store({
  state,
  mutations,
  actions

});
